/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file  EthIf.h
 * @brief Semidrive. AUTOSAR 4.3.1 MCAL Dummy EthIf plugins.
 */

#ifndef ETHIF_CBK_H
#define ETHIF_CBK_H
#ifdef __cplusplus
extern "C"{
#endif

#include "Eth.h"


#define ETHIF_VENDOR_ID                    0x8C
#define ETHIF_MODULE_ID                    65
#define ETHIF_AR_RELEASE_MAJOR_VERSION     4
#define ETHIF_AR_RELEASE_MINOR_VERSION     3
#define ETHIF_AR_RELEASE_REVISION_VERSION  1
#define ETHIF_SW_MAJOR_VERSION             0
#define ETHIF_SW_MINOR_VERSION             1
#define ETHIF_SW_PATCH_VERSION             0

FUNC(void, ETHIF_CODE)EthIf_RxIndication
(   VAR(uint8, AUTOMATIC) CtrlIdx,
    VAR(Eth_FrameType, AUTOMATIC) FrameType,
    VAR(boolean, AUTOMATIC) IsBroadcast,
    P2VAR(uint8, AUTOMATIC, AUTOMATIC) PhysAddrPtr,
    P2VAR(Eth_DataType, AUTOMATIC, AUTOMATIC) DataPtr,
    VAR(uint16, AUTOMATIC) LenByte
);
/*
*/
FUNC(void, ETHIF_CODE)EthIf_TxConfirmation
(
    VAR(uint8, AUTOMATIC) CtrlIdx,
    VAR(Eth_BufIdxType, AUTOMATIC) BufIdx,
    VAR(Std_ReturnType, AUTOMATIC) Result
);
/*
*/
FUNC(void, ETHIF_CODE)EthIf_CtrlModeIndication
(
    VAR(uint8, AUTOMATIC) CtrlIdx,
    VAR(Eth_ModeType, AUTOMATIC) CtrlMode
);

#ifdef __cplusplus
}
#endif

#endif /* ETHIF_CBK_H */
/** @} */
